using System;
using Deepcode.Flux.Core.Extensions;
using Deepcode.Flux.Core.Extensions.Codons;

namespace Deepcode.Flux.Core.Codons.SimpleCodons
{
	/// <summary>
	/// Simplest form of codon tag. Represented in the addin xml definition as
	/// Class id="id" value="the string value"
	/// </summary>
	[XmlCodonName("String")]
	public class StringCodon : AbstractCodon
	{
		[XmlCodonAttribute("value")]
		private string value = "";

		public override object BuildItem(object owner, System.Collections.ArrayList subItems)
		{
			string v = value;
			return v;
		}

	}
}
